home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BlastDOS
/
pcANYWHERE 2.0.zip
/
Disk 1.IMA
/
INSTALL.INF
< prev
next >
Wrap
INI File
|
1995-08-11
|
16KB
|
609 lines
; pcANYWHERE install script
[InstallVersion]
3.3
[WindowsVersion]
3.10
"pcANYWHERE for Windows requires"
"Windows version 3.1 or greater."
[process]
switch91 = IsWinVerGTE(0320) ;switch91=TRUE if Win 4.0
switch94=Exists(Files10) ;switch94=TRUE if version 1.0 host files exist
switch93=Exists(Files45) ;switch93=TRUE if version 4.5 host files exist
switch92=Exists(Files50) ;switch92=TRUE if version 5.0 host files exist
switch90=Exists(BinFile) ;switch90=TRUE if ANYWHERE.BIN file exists
switch89=Exists(PcawIni) ;switch89=TRUE if pcaw.ini exists
switch87=Exists(Files20) ;switch87=TRUE if version 2.0 host files exist
#ifnot(switch87) ;or if NoReg file exists
switch87=Exists(NoReg)
#endif
switch88=FALSE ;switch88=TRUE if any pcAW VCD files exist
switch88=VerifyIni(awvcd)
#ifnot(switch88)
switch88=VerifyIni(aw_vcd)
#endif
#ifnot(switch88)
switch88=VerifyIni(aw5vcd)
#endif
Bitmaps(pix) ;display background bitmap
AllowIntlChars() ;allow international characters
backup(pcawinst) ;copy install dll to Windows directory
;setup the file information for copying
SetActiveCopy(PCACopy, install.inf)
switch01 = IsRegistered() ;if not already registered, ask for registration
#ifnot(switch01)
Registration()
VersionSearch() ;search for existing version
#endif
GetPrevVerSize() ;for calculating space required
TargetDrive() ;get target drive/path
switch86=Exists(Winaw) ;switch86=TRUE if WINAW.EXE in target already
Backup(SaveEm) ;backup system start-up files
messagebox(InformAboutBackup)
DisableUtils()
copy() ;copy files
groups() ;setup groups
EnableUtils()
RemoveFromLoad(RemHost) ;remove load=winhost from win.ini in case it is old
DelFromIni(OldVxDs) ;delete old pcAW VxD files in system.ini
AddToIni(AWVXDS) ;add new VxDs to system.ini
DelFromIni(DelOldSymevent)
AddToIni(SYMEVENT) ;add device=symevnt.386 to system.ini
switch01 = VerifyIni(CheckNetHeapSize) ;if no NetHeapSize, set it to 24
#ifnot(switch01)
AddToIni(SetNetHeapSize)
#endif
switch01 = VerifyIni(TimeCriticalPresent) ;add TimerCriticalSection=500 if not set in system.ini
#ifnot(switch01)
AddToIni(TimeCriticalSection)
#endif
switch01 = VerifyIni(FindFontSection) ;add font section to pcaw.ini if not already there
#ifnot(switch01)
AddToIni(AddFontSection)
#endif
#if(switch88) ;if we removed an old pcAW VCD
switch01 = VerifyIni(VCDExists) ;restore original one if no other exists
#ifnot(switch01) ;if not,
switch02 = Exists(VCD386Exists) ;check if vcd.386 exists
#if(switch02)
AddToIni(AddVCD386) ;yes - use it
#else
AddToIni(AddVCD) ;no - use *vcd
#endif
#endif
#endif
;------------------------------------------------------------------------------------
;Restore the original video, keyboard, mouse, and sound drivers if upgrading
;from a previous version of pcAW
;------------------------------------------------------------------------------------
switch01 = Exists(PcawIni) ;check if pcaw.ini exists (it should - we created one)
#if(switch01)
switch02 = VerifyIni(MouseDriverSaved) ;check if a mouse driver was saved in pcaw.ini
#if(switch02)
switch03 = VerifyIni(MouseCheckOld) ;check if a pcAW mouse driver is in system.ini
#if(switch03)
CopyIni(MouseRestore) ;restore original mouse driver
#endif
#else ;no driver saved but may be a 4.5 install
switch03 = VerifyIni(MouseCheckOld) ;check if a pcAW mouse driver is in system.ini
#if(switch03)
UpdateIni(MouseRestore1) ;restore to mouse.drv and hope it's correct
#endif
#endif
switch02 = VerifyIni(KbdDriverSaved) ;check if a kbd driver was saved in pcaw.ini
#if(switch02)
switch03 = VerifyIni(KbdCheckOld) ;check if a pcAW kbd driver is in system.ini
#if(switch03)
CopyIni(KbdRestore) ;restore original keyboard driver
#endif
#endif
switch02 = VerifyIni(DisplayDriverSaved) ;check if a display driver was saved in pcaw.ini
#if(switch02)
switch03 = VerifyIni(DisplayCheckOld) ;check if a pcAW display driver is in system.ini
#if(switch03)
CopyIni(DisplayRestore) ;restore original display driver
#endif
#endif
switch02 = VerifyIni(SoundDriverSaved) ;check if a sound driver was saved in pcaw.ini
#if(switch02)
switch03 = VerifyIni(SoundCheckOld) ;check if a pcAW sound driver is in system.ini
#if(switch03)
CopyIni(SoundRestore) ;restore original sound driver
#endif
#endif
#endif
;Create [oldfiles] section in pcaw.ini and list files that the main program should
;delete the first time it is run.
AddToIni(Oldfiles)
#if(switch94)
AddToIni(DelOld10)
#endif
#if(switch93)
AddToIni(DelOld45)
#endif
#if(switch92)
AddToIni(DelOld50)
#endif
DelFromIni(Oldfiles)
switch85=Exists(CheckAuto) ;check if autoexec.bat exists
#if(switch85) ;if so,
ModifyTextFile(autoexec) ;remove old DOS TSR it.
#endif
CallProc(NetworkCustomize) ;Update anywhere.bin and get admin options
Delete(OldBaseFiles) ;remove old pcAW/Win files no longer used
Delete(InstallDLLs) ;remove install files
MergeRegFile(Reg) ;merge reg file
#if(switch91)
EndRebootOnly(ByeRestart)
#else
End(ByeNoReboot)
#endif
End()
;-----------------------------------------------------------------------
; Copy.
;-----------------------------------------------------------------------
[PCACopy]
CopyMain.BaseFiles, "pcANYWHERE", 0, Y, N, Y
[PCACopy:CopyDialog]
caption = "Copying pcANYWHERE Files..."
posx = -50
posy = -50
;-----------------------------------------------------------------------
; Copy file information for remote-only version
;-----------------------------------------------------------------------
[PCARemoteCopy]
CopyMain.BaseFiles, "pcANYWHERE - %ldK ", 2000, Y, N, Y
[PCARemoteCopy:CopyDialog]
caption = "Copying pcANYWHERE Files..."
posx = -50
posy = -50
;-----------------------------------------------------------------------
; Copy file information for host-only version
;-----------------------------------------------------------------------
[PCAHostCopy]
CopyMain.BaseFiles, "pcANYWHERE - %ldK ", 2000, Y, N, Y
[PCAHostCopy:CopyDialog]
caption = "Copying pcANYWHERE Files..."
posx = -50
posy = -50
;----------------------------------------------------------------------------------
;[AdvoDefault]
;posx = 20
;posy = 20
;text = AdvoText
;[AdvoText]
;"Please fill out your registration"
;"form to be sure to get information"
;"about product updates."
;""
;-----------------------------------------------------------------------
; Groups.
;-----------------------------------------------------------------------
[groups]
"pcAnywhere", winaw.grp, DELETE
[pcAnywhere]
"pcAnywhere for Windows", winaw.exe, BaseFiles
"Remove pcAnywhere", "install.exe /u", BaseFiles
"Release Notes", readme.txt, BaseFiles
[ByeNoReboot]
caption = "pcANYWHERE -- Install Complete"
"This concludes the installation of pcANYWHERE for Windows."
" "
"Please review the README.TXT file for last minute changes and corrections to the documentation."
" "
"Select one of the exit options."
[ByeRestart]
caption = "pcANYWHERE -- Install Complete"
"This concludes the installation of pcANYWHERE for Windows."
" "
"Please review the README.TXT file for last minute changes and corrections to the documentation."
" "
[InformAboutB